Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

156 user story admin and office can view full orch rotas closes #170 #173

Merged

Conversation

mikerae
Copy link
Owner

@mikerae mikerae commented Oct 9, 2023

No description provided.

- If user is staff (Office or admin): access programs dropdown with
    links disabled
- If user is superuser: access admin. Else no access to admin.
	modified:   templates/base.html
Update welcome screen for office users
    modified:   string_rota/templates/string_rota/home.html

Add testing for Update Sidebar and Update to readme
	modified:   README.md
	new file:   readme_assets/images/testing-issue156-1.png
Add Sections to context in home class
	modified:   string_rota/views.py

Add sections to sidebar for each project
	modified:   templates/base.html

Add testing to readme
	modified:   README.md
	new file:   readme_assets/images/testing-issue156-2.png
Add sidebar Links logic dependant on Group Office/Rota Manager
	modified:   templates/base.html

Update logic in Rota View to receive a section argument as **kwargs
	modified:   string_rota/views.py

Update path for toggle published/draft
Add url for Rota_admin
	modified:   string_rota/urls.py

Add testing for 'Add View Rotas for Admin/Orch Manager' to README
- NB. basic functionality works, but CRUD links do not work in this
    commit. The resolution of the CRUD server errors is the same as for
    Rota class view ie pass in the Section as **kwargs and isolate
    calls to request.user - player and section
	modified:   README.md
	new file:   readme_assets/images/testing-issue156-3.png
Add paths for add_sp_office, with additional section id argument
	modified:   string_rota/urls.py
	modified:   string_rota/templates/string_rota/rota.html

Add logic to add_sp class setting section from sidebar
	modified:   string_rota/views.py

Add testing for Fix Bug-Admin add seating position to README
	modified:   README.md
	new file:   readme_assets/images/testing-issue170-1.png
For Admin User:
In Views: Each CRUD Class accepts ssection_id as kwargs and sets the
value of section. Each returns to a dedicated 'office' url
	modified:   string_rota/views.py

Fix for Add Seating Position: conditional routing
	modified:   string_rota/templates/string_rota/add_sp.html
    modified:   string_rota/templates/string_rota/rota.html

Fix for Edit Seating position: conditional routing
	modified:   string_rota/templates/string_rota/edit_sp.html

Add dedicated office urls for each CRUD url
	modified:   string_rota/urls.py

Add testing for Fix CRUD for Admin Seating Position in README
	modified:   README.md
	new file:   readme_assets/images/testing-issue170-2.png
Update message in ToggleSeatingPlanStatus Class
Add accepts section.id as kwargs in ToggleSeatingPlanStatus Class
Add conditional return logic in ToggleSeatingPlanStatus Class
Derive section form kwargs in ToggleSeatingPlanStatus Class
	modified:   string_rota/views.py

Add conditional routing for Draft/Published Button
	modified:   string_rota/templates/string_rota/rota.html

Add toggle_seating_plan_status_office path
	modified:   string_rota/urls.py

Add testing of Admin Toggle Draft/Pubished rotas to README
	modified:   README.md
	new file:   readme_assets/images/testing-issue170-3.png
Remove Register User from Admin login temporarily to ensure pull request
    is robust.
	modified:   templates/base.html

Add conditional rendering for login as Admin/Rota Manager in
    Reserve class
Add **kwargs to pass section.id into Reserve class
	modified:   string_rota/views.py

Add reserve_office url
	modified:   string_rota/urls.py

Add conditional Allocate Reserve button url
	modified:   string_rota/templates/string_rota/rota.html

Add conditional cancel button url
	modified:   string_rota/templates/string_rota/reserve.html

Add testing for Add Admin Allocate reserve to README
	modified:   README.md
	new file:   readme_assets/images/testing-issue170-4.png
@mikerae mikerae linked an issue Oct 9, 2023 that may be closed by this pull request
6 tasks
@mikerae mikerae merged commit 54fad29 into main Oct 9, 2023
@mikerae mikerae deleted the 156-user-story-admin-and-office-can-view-full-orch-rotas branch October 9, 2023 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

USER STORY: Admin and Office can view full orch rotas
1 participant